<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$meta_title}</title>
  
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" href="">
  <link rel="apple-touch-icon-precomposed" href="">
  <meta name="apple-mobile-web-app-title" content="{$meta_title}" />
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/amazeui.min.css"/>
  <link rel="stylesheet" href="__ROOT__/Application/Home/View/default/assets/css/admin.css">
  
  <script type="text/javascript" src="__PUBLIC__/libs/dingding/javascripts/zepto.min.js"></script>
 <script type="text/javascript" src="https://g.alicdn.com/ilw/ding/0.8.9/scripts/dingtalk.js"></script>
</head>
<body>


<div class="am-cf admin-main">
 
<!-- content start -->
<div class="admin-content">
  <div class="admin-content-body">
  
      
		<div class="am-panel am-panel-default">
            <div class="am-panel-bd am-collapse am-in" id="collapse-panel-1">
              <ul class="am-list admin-content-file">
                
               
				<li>
                  <strong><span ></span> 项目编号</strong>
                  <p>{$info.projectid}</p>
                </li>
                <li>
                  <strong><span ></span> 执行人</strong>
                  <p>{$info.uid}</p>
                </li>
                <li>
                  <strong><span ></span> 任务内容</strong>
                  <p>{$info.content}</p>
                </li>
                <li>
                  <strong><span ></span> 任务类型</strong>
                  <p>{$info.type}</p>
                </li>
                <li>
                  <strong><span ></span> 任务级别</strong>
                  <p>{$info.emergency_level}</p>
                </li>
                <li>
                  <strong><span ></span> 开始时间</strong>
                  <p>{$info.start_time}</p>
                </li>
                <li>
                  <strong><span ></span> 完成时间</strong>
                  <p>{$info.end_time}</p>
                </li>
                <li>
                  <strong><span ></span> 发布人</strong>
                  <p>{$info.creater}</p>
                </li>
                <li>
                  <strong><span ></span> 任务状态</strong>
                   <p >
	                  <if condition="$info.status eq 1 ">
							<i class="am-text-warning">进行中</i>
							
						<elseif condition="$info.status eq 2 "/> 
							<i class="am-text-danger">未开始</i>
							
						<elseif condition="$info.status eq 3 "/> 
							<i class="am-text-success">已完结</i>
						</if> 
					</p>
                </li>
                <li>
                  <strong><span ></span> 操作</strong>
                   <p style=" text-align: center; ">
	                  <if condition="$info.status eq 1 ">
		                  	<if condition="$pid eq 0">
		                  		<a href="/Wap/Task/finishTask/id/{$info.id}"><span class="am-badge font-size am-badge-secondary">完成任务</span></a>
								<a href="/Wap/Task/addson/pid/{$info.id}"><span class="am-badge font-size am-badge-warning">添加子任务</span></a>
							<else />
								<a href="/Wap/Task/finishTask/id/{$info.id}/pid/{$pid}"><span class="am-badge font-size am-badge-secondary">完成任务</span></a>
							</if>	
					 <elseif condition="$info.status eq 2 "/>
					 	<if condition="$pid eq 0"> 
							<a href="/Wap/Task/starTask/id/{$info.id}"><span class="am-badge font-size am-badge-secondary">开始任务</span></a>
							<a href="/Wap/Task/addson/pid/{$info.id}"><span class="am-badge font-size am-badge-warning">添加子任务</span></a>
						<else />
							<a href="/Wap/Task/starTask/id/{$info.id}/pid/{$pid}"><span class="am-badge font-size am-badge-secondary">开始任务</span></a>
						</if>	
					 <elseif condition="$info.status eq 3 "/> 
					 	<if condition="$pid eq 0"> 
							<a href="/Wap/Task/addson/pid/{$info.id}"><span class="am-badge am-badge-warning">添加子任务</span></a>
					 	<else /></if>
					 </if> 
					</p>
                </li>
              </ul>
              
            </div>
          </div>
   
	

  </div>
  
  <div style="height:60px;"></div>
</div>
<!-- content end -->

</div>


<script type="text/javascript">
dd.ready(function() {
	//下拉刷新
	dd.ui.pullToRefresh.enable({
	    onSuccess: function() {
	    	window.location.reload();
	    	dd.ui.pullToRefresh.stop();
	    },
	    onFail: function() {
	    	
	    }
	});
		//右侧
		var pid={$info.id};
		dd.biz.navigation.setRight({
		    show: true,//控制按钮显示， true 显示， false 隐藏， 默认true
		    control: true,//是否控制点击事件，true 控制，false 不控制， 默认false
		    text: '子任务',//控制显示文本，空字符串表示显示默认文本
		    onSuccess : function(result) {
		    	window.location.href='/Wap/Task/sontask/pid/'+pid;
		        //如果control为true，则onSuccess将在发生按钮点击事件被回调
		        /*
		        {}
		        */
		    },
		    onFail : function(err) {}
		});

}); 


</script>

<!-- footnav start --> 
<style>
.footnav{ position: fixed;  bottom: 0;    width: 100% ; background: #fff; z-index:999999;}
.footnav ul{ padding:5px 0; border-top:1px solid #ccc}
.footnav ul li{ width:20%; float:left;list-style-type: none;}
.footnav ul li a{ display:block; text-align:center; font-size:12px;    color: #767171;}
.footnav ul li a span{ font-size:24px;line-height: 20px;}
.active a {color:#0e90d2 !important;}

.am-badge{
	font-size: 2rem;
}
</style>
<div class=" footnav">
    <ul>
    <li > <a  href="/Wap/Index/shouye" ><span class="am-icon-home"></span>首页 </a> </li>
     <li class="active"><a href="/Wap/Task/mytask"><span class="am-icon-file-text"></span>任务</a></li>
      <li ><a href="/Wap/Server/index"><span class="am-icon-recycle"></span> 服务器</a></li>
      <li ><a href="/Wap/Customer/index"><span class="am-icon-user-md"></span>客户</a></li> 
      <li ><a href="/Wap/Project/index"><span class="am-icon-briefcase"></span>项目</a></li>
    </ul>
    
</div>
<!-- footnav end -->

<script src="__ROOT__/Application/Home/View/default/assets/js/jquery.min.js"></script>

<script src="__ROOT__/Application/Home/View/default/assets/js/amazeui.min.js"></script>
<script src="__ROOT__/Application/Home/View/default/assets/js/app.js"></script>
</body>
</html>
